/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gra;

import java.text.DecimalFormat;
import org.lwjgl.Sys;
import org.lwjgl.util.Timer;

/**
 *
 * @author Grog
 */




public class Stoper {
    Timer t = new Timer();
    
    double lastTime = 0;
    double curentTime = 0;
  
    public Stoper() {
       t.reset();       
       t.resume();
    } 
    
    public void stoperPauza(){  
        t.pause();   
    }
    public void stoperReset(){  
        t.reset();   
    }
   
    public float getTime(){     
       return t.getTime(); 
    }
    
    public void Update(){      
       Timer.tick();
    
       
       
    }
  
    public boolean czyMinelo(int sekund) {      
        
        if((int)getTime()==sekund){          
             t.reset();
        return true;   
        }          
        return false;
    }
}
